package com.example.demo.service.order;

import com.example.demo.common.BasePageResponse;
import com.example.demo.common.ResultObject;
import com.example.demo.jooq.tables.pojos.Address;
import com.example.demo.jooq.tables.pojos.Email;
import com.example.demo.model.request.AddressPageRequest;
import com.example.demo.model.request.AddressRequest;
import com.example.demo.model.request.VpsPageRequest;
import com.example.demo.model.response.AddressResponse;
import com.example.demo.model.response.VpsResponse;

public interface IAddressService {
    /**
     * 分页查询Vps
     * @param addressPageRequest
     * @return ResultObject<BasePageResponse<VpsResponse>>
     */
    public ResultObject<BasePageResponse<AddressResponse>> queryPageAddressList(AddressPageRequest addressPageRequest);

    /**
     * 保存邮箱信息
     * @param address 数据对象
     * @return ResultObject
     */
    public ResultObject saveAddress(AddressRequest address);


    /**
     * 查询地址详细信息
     * @param addressId 数据对象
     * @return ResultObject
     */
    public ResultObject<AddressResponse> queryAddressDetail(String  addressId);

}
